<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06数据初始化</title>
</head>
<body ng-app="app">
    <div ng-controller="demoController" ng-init="name='张三';age=15">
        <h1>{{name}}</h1>
        <h1>{{age}}</h1>
    </div>
</body>
<script src="libs/angular.min.js"></script>
<script>
    var app = angular.module("app",[]);
    app.controller("demoController",["$scope",function($scope){

    }]);
</script>
</html>